package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_JHLX"
 *     
*/
public class DmJhlx implements Serializable {

    /** identifier field */
    private String jhlxDm;

    /** nullable persistent field */
    private String jhlxMc;

    /** full constructor */
    public DmJhlx(String jhlxDm, String jhlxMc) {
        this.jhlxDm = jhlxDm;
        this.jhlxMc = jhlxMc;
    }

    /** default constructor */
    public DmJhlx() {
    }

    /** minimal constructor */
    public DmJhlx(String jhlxDm) {
        this.jhlxDm = jhlxDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="JHLX_DM"
     *         
     */
    public String getJhlxDm() {
        return this.jhlxDm;
    }

    public void setJhlxDm(String jhlxDm) {
        this.jhlxDm = jhlxDm;
    }

    /** 
     *            @hibernate.property
     *             column="JHLX_MC"
     *             length="30"
     *         
     */
    public String getJhlxMc() {
        return this.jhlxMc;
    }

    public void setJhlxMc(String jhlxMc) {
        this.jhlxMc = jhlxMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("jhlxDm", getJhlxDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmJhlx) ) return false;
        DmJhlx castOther = (DmJhlx) other;
        return new EqualsBuilder()
            .append(this.getJhlxDm(), castOther.getJhlxDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getJhlxDm())
            .toHashCode();
    }

}
